/****************************************************
          File Name:6-6.cpp
          Author: Abby Cin
          Mail: abbytsing@gmail.com
          Created Time: Fri 19 Dec 2014 03:13:16 PM CST
*****************************************************/

#include<iostream>
#include<string>
using namespace std;

struct donate {
    string name;
    double num;
};

int main()
{
    int all;

    cout << "Enter how many people will donate: ";
    (cin >> all).get();

    donate *process = new donate[all];

    for(int i = 0; i < all; i++)
    {
        cout << "Enter donater's name: ";
        getline(cin,process[i].name);
        cout << "Enter donate num: ";
        (cin >> process[i].num).get();
    }

    cout << "------- Grand Patrons ---------" << endl;

    for(int i = 0;  i < all; i++)
    {
        if(process[i].num > 10000)
        {
            if(process[i].name == "")
                cout << "Patrons:\tnone\n";
            else
                cout << "Patrons:\t" << process[i].name << endl;;
        }
    }

    delete [] process;

    return 0;
}
